import { TJshortcuts } from '@/utils/config'
export const queryFormConfig = {
  formItems: [{
    filed: 'orderNo',
    type: 'input',
    label: '订单号',
    placeholder: '请输入订单号',
    clearable: true
  }, {
    filed: 'channel',
    type: 'select',
    label: '充值渠道',
    placeholder: '请选择充值渠道',
    clearable: true,
    options: [
      { value: '01', label: '小程序端' },
      { value: '02', label: '场馆pc端' }
    ]
  }, {
    filed: 'creator',
    type: 'input',
    label: '操作人呢称',
    placeholder: '请输入操作人呢称',
    clearable: true
  },
  {
    filed: 'cardType',
    type: 'select',
    label: '会员卡类型',
    placeholder: '请选择会员卡类型',
    options: []
  },
  {
    filed: 'memberInfo',
    type: 'input',
    label: '会员信息',
    placeholder: '请输入会员名称/手机号/卡号',
    clearable: true
  },
  // {
  //   filed: 'memberName',
  //   type: 'input',
  //   label: '会员名称',
  //   placeholder: '请输入会员名称',
  //   clearable: true
  // },
  // {
  //   filed: 'phone',
  //   type: 'input',
  //   label: '会员手机号',
  //   placeholder: '请输入会员手机号',
  //   clearable: true
  // },
  {
    filed: 'payStatus',
    type: 'select',
    label: '订单状态',
    placeholder: '请选择订单状态',
    clearable: true,
    options: [
      { value: '0', label: '待支付' },
      { value: '1', label: '超时未支付' },
      { value: '2', label: '取消支付' },
      { value: '3', label: '支付成功' }
    ]
  },
  {
    filed: 'orderType',
    type: 'select',
    label: '订单类型',
    placeholder: '请选择订单类型',
    options: [
      { value: '01', label: '会员充值' },
      { value: '05', label: '会员开卡' }
    ]
  },
  {
    filed: 'dates',
    label: '创建时间',
    type: 'daterange',
    pickerOptions: {
      shortcuts: TJshortcuts
    }
  }
  ],
  online: true
}
